gtk4.git
12 years agotestsuite: Add a clipboard test
Benjamin Otte [Fri, 23 Aug 2013 11:00:37 +0000 (13:00 +0200)]
testsuite: Add a clipboard test

I'm not sure I like it yet because it deadlocked once and I haven't
figured out why that is.

12 years agoAdd api to ellipsize labels to multiple lines
Matthias Clasen [Fri, 23 Aug 2013 00:29:22 +0000 (20:29 -0400)]
Add api to ellipsize labels to multiple lines

When setting the lines property, the label will be ellipsized
to that many lines, with the ellipsis only appearing in the
last line. This is different from how ellipsization of multi-line
labels normally works in GTK+.

12 years agocombobox: Add missing Since tags for entry constructors
David King [Thu, 22 Aug 2013 19:36:17 +0000 (20:36 +0100)]
combobox: Add missing Since tags for entry constructors

12 years agogtkwindow: Enable CSD when windows set a titlebar
Jasper St. Pierre [Wed, 21 Aug 2013 17:54:16 +0000 (13:54 -0400)]
gtkwindow: Enable CSD when windows set a titlebar

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Disable CSD if we aren't running under a supported WM
Jasper St. Pierre [Wed, 21 Aug 2013 19:08:08 +0000 (15:08 -0400)]
gtkwindow: Disable CSD if we aren't running under a supported WM

Also, split the checks for CSD out into a separate function.

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Split code that detects if we want CSD out
Jasper St. Pierre [Wed, 21 Aug 2013 19:05:44 +0000 (15:05 -0400)]
gtkwindow: Split code that detects if we want CSD out

This will get a bit more complex when we enable CSD for custom headerbars

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Have a separate "titlebar" pointer for decorations we create ourselves
Jasper St. Pierre [Wed, 21 Aug 2013 18:59:44 +0000 (14:59 -0400)]
gtkwindow: Have a separate "titlebar" pointer for decorations we create ourselves

This cleans up the code a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Rename title_icon, etc. to titlebar_icon
Jasper St. Pierre [Wed, 21 Aug 2013 18:55:22 +0000 (14:55 -0400)]
gtkwindow: Rename title_icon, etc. to titlebar_icon

"title_box" is used for both a custom header bar and for a titlebar.
Since we want to help differentiate these cases in the code, rename
everything titlebar-internal to use "titlebar_".

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agoUpdate Tajik translations
Victor Ibragimov [Wed, 21 Aug 2013 23:28:17 +0000 (01:28 +0200)]
Update Tajik translations

12 years agofilechooser: Don't use an underline mnemonic in the 'Save in folder' label
Federico Mena Quintero [Wed, 21 Aug 2013 14:50:42 +0000 (09:50 -0500)]
filechooser: Don't use an underline mnemonic in the 'Save in folder' label

This used to point to the GtkPathBar, which doesn't accept mnemonic activation, anyway.
This whole thing was a leftover from when we had a combo box to select a folder, but
this is no longer the case.

https://bugzilla.gnome.org/show_bug.cgi?id=706448

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoclipboard: fix build without wayland
Saleem Abdulrasool [Wed, 21 Aug 2013 02:30:05 +0000 (19:30 -0700)]
clipboard: fix build without wayland

Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
12 years agoUpdated Polish translation
Piotr Drąg [Wed, 21 Aug 2013 02:27:19 +0000 (04:27 +0200)]
Updated Polish translation

12 years agoUpdated Polish translation
Piotr Drąg [Wed, 21 Aug 2013 02:16:52 +0000 (04:16 +0200)]
Updated Polish translation

12 years agoFix minor typos
Piotr Drąg [Wed, 21 Aug 2013 02:15:52 +0000 (04:15 +0200)]
Fix minor typos

12 years agoPost release version bump
Matthias Clasen [Tue, 20 Aug 2013 22:54:41 +0000 (18:54 -0400)]
Post release version bump

12 years ago3.9.12
Matthias Clasen [Tue, 20 Aug 2013 02:04:48 +0000 (22:04 -0400)]
3.9.12

12 years agoFix distcheck
Matthias Clasen [Tue, 20 Aug 2013 22:53:07 +0000 (18:53 -0400)]
Fix distcheck

We need to clean up the ui.h files somewhere if they are generated
during the build from tarball. Reuse the existing distclean-local
hack for it.

12 years agoAdd new api to the docs
Matthias Clasen [Tue, 20 Aug 2013 20:19:52 +0000 (16:19 -0400)]
Add new api to the docs

12 years agoGtkHeaderBar: Add the titlebutton style to the close button
Matthias Clasen [Tue, 20 Aug 2013 15:33:07 +0000 (11:33 -0400)]
GtkHeaderBar: Add the titlebutton style to the close button

This will let the theme unify the appearance of this button with
the window buttons in 'traditional' title bars.

12 years agodoc: Fix typos
Volker Sobek [Mon, 19 Aug 2013 17:50:43 +0000 (19:50 +0200)]
doc: Fix typos

Fix two typos in gtk/gtktexttag.c.

https://bugzilla.gnome.org/show_bug.cgi?id=706335

12 years agoclipboard: Reimplement Wayland clipboard using vfuncs
Benjamin Otte [Tue, 20 Aug 2013 13:35:58 +0000 (15:35 +0200)]
clipboard: Reimplement Wayland clipboard using vfuncs

This way, the Wayland and the regular clipboard implementation can both
be compiled in and selected based on the display in use.

One thing potentially broken now is text mime type handling as Wayland
seemed to use different mime types in some places.

12 years agoclipboard: Make a bunch of functions vfuncs
Benjamin Otte [Tue, 20 Aug 2013 12:44:14 +0000 (14:44 +0200)]
clipboard: Make a bunch of functions vfuncs

12 years agoclipboard: Split struct definitions into private header
Benjamin Otte [Mon, 19 Aug 2013 13:28:47 +0000 (15:28 +0200)]
clipboard: Split struct definitions into private header

12 years agoUpdate README.in
Alexander Larsson [Tue, 20 Aug 2013 13:37:13 +0000 (15:37 +0200)]
Update README.in

12 years agox11: Add gdk_x11_display_set_window_scale
Alexander Larsson [Tue, 20 Aug 2013 09:15:08 +0000 (11:15 +0200)]
x11: Add gdk_x11_display_set_window_scale

This lets you force a specific window scale, this is needed
for mutter to be able to disable the scaling as it needs access
to unmangled X window/screen sizes. It can also be useful to
force a specific scale in e.g. tests.

12 years agoEnforce a fixed scale of 1 if no cairo scale support
Alexander Larsson [Tue, 20 Aug 2013 08:29:45 +0000 (10:29 +0200)]
Enforce a fixed scale of 1 if no cairo scale support

We used to just follow the default, which would pick up scale
changes from xsettings, but that is not right if we can't
actually support scales.

12 years agoAvoid deprecation warnings
Matthias Clasen [Tue, 20 Aug 2013 04:14:00 +0000 (00:14 -0400)]
Avoid deprecation warnings

12 years agoiconhelper: refactor some code into a single function
Cosimo Cecchi [Sun, 4 Aug 2013 14:56:37 +0000 (16:56 +0200)]
iconhelper: refactor some code into a single function

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agoiconfactory: cache/invalidate pixbufs according to the effect
Cosimo Cecchi [Sun, 4 Aug 2013 09:40:43 +0000 (11:40 +0200)]
iconfactory: cache/invalidate pixbufs according to the effect

The state of the widget is not enough now to cache the pixbuf - we also
have to take into consideration the image effect itself, since the state
on the actual GtkStyleContext we use might not change, e.g. because the
change was on a parent context.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agothemingengine: apply image effects according to GtkCssImageEffect value
Cosimo Cecchi [Sun, 4 Aug 2013 09:39:49 +0000 (11:39 +0200)]
themingengine: apply image effects according to GtkCssImageEffect value

Instead of only looking at the state flags.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agocss: Add a GtkCssValue for GtkCssImageEffect
Cosimo Cecchi [Sun, 4 Aug 2013 09:38:56 +0000 (11:38 +0200)]
css: Add a GtkCssValue for GtkCssImageEffect

This will allow us to use the CSS machinery to apply a highlight or dim
effect when images are prelit or insensitive.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agothemingengine: refactor a conditional branch
Cosimo Cecchi [Sun, 4 Aug 2013 07:32:14 +0000 (09:32 +0200)]
themingengine: refactor a conditional branch

Return early when the state is not wildcarded - makes the code more
readable.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agopathbar: add back GTK_STYLE_CLASS_LINKED
Cosimo Cecchi [Fri, 16 Aug 2013 16:53:39 +0000 (18:53 +0200)]
pathbar: add back GTK_STYLE_CLASS_LINKED

This was accidentally removed in commit
42f53ab58e3f905b242029c2ea446d79d2113725

https://bugzilla.gnome.org/show_bug.cgi?id=706028

12 years agoRedo style class handling
Matthias Clasen [Mon, 19 Aug 2013 18:40:22 +0000 (14:40 -0400)]
Redo style class handling

We should set the appropriate style classes when we have
constructed the content and know if it is a label, an image,
or both. Doing this in the convenience constructors is
problematic for language bindings, and misses out when the
content is changed after construction.

12 years agoRevert "Add the "text-button" style to button created with gtk_button_new_with_{label...
Matthias Clasen [Mon, 19 Aug 2013 18:00:37 +0000 (14:00 -0400)]
Revert "Add the "text-button" style to button created with gtk_button_new_with_{label,mnemonic}"

This reverts commit 8d7bab7d7b902e54f27d7dbe26bca9e21eb45787.

12 years agoFix a typo
Yosef Or Boczko [Mon, 19 Aug 2013 17:59:50 +0000 (20:59 +0300)]
Fix a typo

12 years agoGtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.
Andrew Walton [Thu, 15 Aug 2013 18:34:31 +0000 (11:34 -0700)]
GtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.

I'm currently working on porting view::FieldEntry (from libview) to C for use in
upstream GTK+. FieldEntry is a widget which allows users to enter structured
text such as IPv4 addresses or serial numbers. The way that FieldEntry
delineates the fields within the entry is with tabstops, using PangoTabArray
entries to precisely position the fields and delimiters. Because GtkEntry
rebuilds its internal PangoLayout fairly frequently, this requires a property in
the entry that will set the tabs on the layout whenever that happens. This API
looks very similar to one in GtkTextView.

Patch by David Trowbridge <trowbrds@gmail.com>. Updated for Gtk+ 3.10.

https://bugzilla.gnome.org/show_bug.cgi?id=697399

12 years agoFix GtkEntry drawing to provide visual feedback when editable=FALSE.
David Trowbridge [Mon, 19 Aug 2013 17:41:39 +0000 (13:41 -0400)]
Fix GtkEntry drawing to provide visual feedback when editable=FALSE.

GtkEntry currently draws exactly the same no matter what the state of the
'editable' property. This is pretty confusing for users because there's
no visual feedback at all, it just seems like their keyboard is broken.

This change adds a "read-only" class to the StyleContext, which will
continue to allow the user to select/copy the text, but will draw the
entry as if it were insensitive, providing some indication that the
contents can't be changed.

Signed-off-by: David Trowbridge <trowbrds@gmail.com>
http://bugzilla.gnome.org/show_bug.cgi?id=694831

12 years agoicon-theme: Add ScaledDirectories support
Alexander Larsson [Mon, 19 Aug 2013 13:42:30 +0000 (15:42 +0200)]
icon-theme: Add ScaledDirectories support

For backwards compat support we don't want old implementations not
supporting scaling to see the new scaled directories, so move these
to a separate list.

12 years agoicon-theme: Use "Scale" for key as per the spec
Alexander Larsson [Mon, 19 Aug 2013 13:41:49 +0000 (15:41 +0200)]
icon-theme: Use "Scale" for key as per the spec

The latest spec proposal uses "Scale", not "OutputScale", so use this.

12 years agogdk_window_raise (): Do not invalidate toplevel windows.
Juan Pablo Ugarte [Wed, 17 Jul 2013 19:23:15 +0000 (16:23 -0300)]
gdk_window_raise (): Do not invalidate toplevel windows.

12 years agoFix keyboard activation of menu buttons
Matthias Clasen [Mon, 19 Aug 2013 02:22:22 +0000 (22:22 -0400)]
Fix keyboard activation of menu buttons

Keyboard activation relies on the menu not being visible,
so ensure that it isn't when the menu is attached.

Problem tracked down by Vincent Le Garrec,
https://bugzilla.gnome.org/show_bug.cgi?id=688738

12 years agoAdd a style class for context menus
Matthias Clasen [Sun, 18 Aug 2013 14:45:24 +0000 (10:45 -0400)]
Add a style class for context menus

Attached widgets inherit from the style of the widget they are
attached to. This can sometimes have unintended consequences,
like a context menu in the main view of gedit inheriting the font
that is configured for documents, or the context menu of the preview
in the font chooser coming up with humongous font size.

To fix this problem, we introduce a context menu style class
and use it for all menus that are used like that. The theme
can then set a font for this style class.

https://bugzilla.gnome.org/show_bug.cgi?id=697127

12 years agoAdd the "text-button" style to button created with gtk_button_new_with_{label,mnemonic}
Yosef Or Boczko [Sat, 17 Aug 2013 22:14:44 +0000 (01:14 +0300)]
Add the "text-button" style to button created with gtk_button_new_with_{label,mnemonic}

https://bugzilla.gnome.org/show_bug.cgi?id=706220

12 years agoUpdate Chinese simplified translatin for properties
keyring [Sun, 18 Aug 2013 02:39:12 +0000 (10:39 +0800)]
Update Chinese simplified translatin for properties

12 years agowindow: Some protection against nested set_focus() calls
Stef Walter [Fri, 16 Aug 2013 19:19:15 +0000 (21:19 +0200)]
window: Some protection against nested set_focus() calls

Since set_focus() can triger events, have a check to make
sure state is still valid before firing is-focus signal.

https://bugzilla.gnome.org/show_bug.cgi?id=706152

12 years agowindow: set GTK_STYLE_CLASS_TITLEBAR to custom titles
Cosimo Cecchi [Fri, 16 Aug 2013 17:26:12 +0000 (19:26 +0200)]
window: set GTK_STYLE_CLASS_TITLEBAR to custom titles

When a custom title is added to a GtkWindow, add the
GTK_STYLE_CLASS_TITLEBAR to it, so the theme can apply the default rules
for its style.

https://bugzilla.gnome.org/show_bug.cgi?id=706045

12 years agostylecontext: add GTK_STYLE_CLASS_TITLEBAR define
Cosimo Cecchi [Fri, 16 Aug 2013 17:25:32 +0000 (19:25 +0200)]
stylecontext: add GTK_STYLE_CLASS_TITLEBAR define

For consistency with the other stock style classes.

https://bugzilla.gnome.org/show_bug.cgi?id=706045

12 years agoRevert "Deprecate and ignore the cursor blink settings"
Matthias Clasen [Sat, 17 Aug 2013 02:45:13 +0000 (22:45 -0400)]
Revert "Deprecate and ignore the cursor blink settings"

This reverts commit b2e666bf8f297eb998331fa8ce0062ce7a5198fa.

We need to keep cursor blinking configurable for accessibility
reasons.

https://bugzilla.gnome.org/show_bug.cgi?id=704134

Conflicts:
gdk/win32/gdkproperty-win32.c
gdk/x11/gdksettings.c
gtk/gtksettings.c
gtk/gtktextview.c

12 years agoMake symbolic icons work with the current rsvg
Matthias Clasen [Fri, 16 Aug 2013 22:57:21 +0000 (18:57 -0400)]
Make symbolic icons work with the current rsvg

The rsvg loader now restricts what external files it will
allow to load from an svg. Thus our xinclude trick doesn't work
anymore. To work around that, embed the payload in a  data: uri.
This is somewhat ugly, but the best we could come up with.

12 years agoBug 705750 Quartz input method doesn't work correctly for Chinese characters
Ek Kato [Fri, 16 Aug 2013 16:54:34 +0000 (09:54 -0700)]
Bug 705750 Quartz input method doesn't work correctly for Chinese characters

Modified from original for Gtk3.

12 years agoAdd style classes to headerbar titles
Matthias Clasen [Fri, 16 Aug 2013 17:35:28 +0000 (13:35 -0400)]
Add style classes to headerbar titles

The current theme just makes all text bold that appears anywhere
in a headerbar, which is not great. We add 'title' and 'subtitle'
style classes to allow more targeted overriding of the font.

12 years agoUpdate config.h.win32.in
Chun-wei Fan [Fri, 16 Aug 2013 06:39:08 +0000 (14:39 +0800)]
Update config.h.win32.in

Make its entries match those that are checked by autotools in config.h.in

12 years agoFix a crasher that was introduced by 9ca802161ec6387419d160f21fe477008a567477
Cody Russell [Thu, 15 Aug 2013 20:08:34 +0000 (15:08 -0500)]
Fix a crasher that was introduced by 9ca802161ec6387419d160f21fe477008a567477
due to preedit_str being initialized as an empty string rather than NULL.

12 years agoBug 705182 Reset Cocoa IME state when immodule is reset
Michael Hutchison [Thu, 15 Aug 2013 16:44:02 +0000 (09:44 -0700)]
Bug 705182 Reset Cocoa IME state when immodule is reset

Commits the pre-edit string on receipt of focus_out and reset
commands.
Patch refinements by Cody Russell <bratsche@gnome.org> and
Ek Kato <ek.kato@gmail.com>

12 years agogtksearchentry: Provide an accessible name
Joanmarie Diggs [Thu, 15 Aug 2013 13:20:19 +0000 (15:20 +0200)]
gtksearchentry: Provide an accessible name

https://bugzilla.gnome.org/show_bug.cgi?id=706014

12 years agoClean up Property Sheets a bit
Chun-wei Fan [Thu, 15 Aug 2013 13:48:22 +0000 (21:48 +0800)]
Clean up Property Sheets a bit

...from the last commit, as some unecessary stuff was left over in the
Visual Studio 2010 property sheets.

12 years agoUpdate Visual Studio Property Sheets
Chun-wei Fan [Thu, 15 Aug 2013 13:45:27 +0000 (21:45 +0800)]
Update Visual Studio Property Sheets

-For the binary "installation", look for the DLL files with their file
 names consistent with the ones that are generated with the respective
 Visual Studio projects.
-Remove any stray GDK DLLs that were left over from a Broadway-enabled
 GDK when building a non-Broadway-enabled GTK+ binary set.

12 years agogtkdnd: Introduce a new API for more accurate drag origin data
Jasper St. Pierre [Wed, 7 Aug 2013 09:10:42 +0000 (05:10 -0400)]
gtkdnd: Introduce a new API for more accurate drag origin data

When trying to drag, we currently the position of the first motion
event to determine where the drag came from. This might be alright
in the case of the old animation, but the data will be inaccurate
if the user has moved the pointer quite a bit since pressing the
cursor to start dragging. While we could monkey patch the GdkEvent
at the widget layer, this is unintuitive and strange.

Add a new API that takes a set of pointer coordinates describing
the origin of the drag. Additionally, adapt most widgets to use
it and use it with correct coordinates.

https://bugzilla.gnome.org/show_bug.cgi?id=705605

12 years agogtkdnd: Use a more modern spring back animation for cancelled drags
Jasper St. Pierre [Wed, 7 Aug 2013 07:24:01 +0000 (03:24 -0400)]
gtkdnd: Use a more modern spring back animation for cancelled drags

https://bugzilla.gnome.org/show_bug.cgi?id=705605

12 years agogtktextutil: Remove the border and background from drag icons
Jasper St. Pierre [Wed, 7 Aug 2013 14:21:21 +0000 (10:21 -0400)]
gtktextutil: Remove the border and background from drag icons

https://bugzilla.gnome.org/show_bug.cgi?id=705605

12 years agodoap: doap files are required to have a lowercase <name>
Alberto Ruiz [Wed, 14 Aug 2013 10:05:15 +0000 (12:05 +0200)]
doap: doap files are required to have a lowercase <name>

12 years agodocs: Convert GtkMenuShell comment to documentation
David King [Thu, 15 Nov 2012 19:49:50 +0000 (19:49 +0000)]
docs: Convert GtkMenuShell comment to documentation

https://bugzilla.gnome.org/show_bug.cgi?id=448637

12 years agooopx - fix typo
Yosef Or Boczko [Wed, 14 Aug 2013 07:45:35 +0000 (10:45 +0300)]
oopx - fix typo

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
12 years agoAdd gtk_button_new_from_icon_name
Yosef Or Boczko [Wed, 14 Aug 2013 07:41:42 +0000 (10:41 +0300)]
Add gtk_button_new_from_icon_name

This function is a convenience wrapper around
gtk_button_new() and gtk_button_set_image().

https://bugzilla.gnome.org/show_bug.cgi?id=705918

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
12 years agopaned: minus the size by the handle for the for_child1 computation.
Alban Browaeys [Wed, 7 Aug 2013 16:46:07 +0000 (18:46 +0200)]
paned: minus the size by the handle for the for_child1 computation.

Fixes:
(rhythmbox:22802): Gtk-CRITICAL **:
_gtk_widget_get_preferred_size_for_size: assertion 'size >= -1' failed

that is gtk_paned_get_preferred_size_for_opposite_orientation calls
_gtk_widget_get_preferred_size_for_size on child2 with a negative
size.

As gtkpaned size was (32), child1 minimum size was (55) then
for_child1 became (32) for an handle_size of (5). Thus for_child2
ended up as (-5).

https://bugzilla.gnome.org/show_bug.cgi?id=705624

12 years agoGtkSpinButton: disconnect signals in the accessible
Matthias Clasen [Wed, 14 Aug 2013 04:04:46 +0000 (00:04 -0400)]
GtkSpinButton: disconnect signals in the accessible

Just as for GtkRangeAccessible, we were not even trying to disconnect
the signal handler from the adjustment. The same fix works here:
override the widget_set and widget_unset vfuncs.

https://bugzilla.gnome.org/show_bug.cgi?id=705692

12 years agoGtkRange: disconnect signals in the accessible
Matthias Clasen [Wed, 14 Aug 2013 03:54:53 +0000 (23:54 -0400)]
GtkRange: disconnect signals in the accessible

We were only disconnecting the signal in finalize, when
the widget was already unset. Instead, override the widget_set
and widget_unset vfuncs of GtkAccessible, and keep a reference
to the adjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=705692

12 years agoTrivial typo fix
Matthias Clasen [Wed, 14 Aug 2013 02:25:16 +0000 (22:25 -0400)]
Trivial typo fix

12 years agoImprove a deprecation hint
Matthias Clasen [Wed, 14 Aug 2013 00:41:59 +0000 (20:41 -0400)]
Improve a deprecation hint

Don't point to a replacement that is itself deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=705372

12 years agosearchbar: ignore GDK_KEY_Menu in handle_event()
Stefano Facchini [Mon, 5 Aug 2013 16:22:20 +0000 (18:22 +0200)]
searchbar: ignore GDK_KEY_Menu in handle_event()

https://bugzilla.gnome.org/show_bug.cgi?id=705524

12 years agoMSVC Builds: Update "installation" of headers
Chun-wei Fan [Wed, 14 Aug 2013 00:17:18 +0000 (08:17 +0800)]
MSVC Builds: Update "installation" of headers

"Install" the newly-introduced public header gdkwin32misc.h.

12 years agoBug 702144: Make gdkwin32.h a pure include-only header
Chun-wei Fan [Thu, 13 Jun 2013 04:16:16 +0000 (12:16 +0800)]
Bug 702144: Make gdkwin32.h a pure include-only header

Move all the system includes, defines and function prototypes into a
separate header gdkwin32misc.h, so that we could keep gdkwin32.h as simple
as possible.

12 years agoGTK-Win32: Avoid Using Deprecated API
Chun-wei Fan [Wed, 31 Jul 2013 03:42:36 +0000 (11:42 +0800)]
GTK-Win32: Avoid Using Deprecated API

Replace the deprecated API calls with the updated APIs, and fix the build
of modules/input/gtkimcontextime.c, as we really needed
gdk/gdkkeysyms-compat.h (gdk/gdkkeysyms.h was already included)

https://bugzilla.gnome.org/show_bug.cgi?id=705068

12 years agogdk/win32/gdkdevice-virtual.c: Don't Use Deprecated APIs
Chun-wei Fan [Tue, 30 Jul 2013 03:11:16 +0000 (11:11 +0800)]
gdk/win32/gdkdevice-virtual.c: Don't Use Deprecated APIs

...this was split into two commits as this source file has different
line endings (for some reason) from the other GDK-Win32 source files that
were updated in the quest to refrain from using deprecated APIs

12 years agoGdkWin32: Avoid Using Deprecated API
Chun-wei Fan [Tue, 30 Jul 2013 03:06:57 +0000 (11:06 +0800)]
GdkWin32: Avoid Using Deprecated API

Update the Win32 GDK backend to not use the deprecated GDK APIs.

https://bugzilla.gnome.org/show_bug.cgi?id=705068

12 years agoAdd a function to get the event type
Matthias Clasen [Tue, 13 Aug 2013 23:06:48 +0000 (19:06 -0400)]
Add a function to get the event type

This is useful for language bindings, who can't easily
access the struct field directly.

https://bugzilla.gnome.org/show_bug.cgi?id=700029

12 years agocsd: Implement middle-click action for titlebar
Matthias Clasen [Tue, 13 Aug 2013 22:24:37 +0000 (18:24 -0400)]
csd: Implement middle-click action for titlebar

The default middle-click action on the titlebar should be to lower
the window. Implement that.

https://bugzilla.gnome.org/show_bug.cgi?id=705809

12 years agoAdd some missing deprecation annotations
Matthias Clasen [Tue, 13 Aug 2013 22:09:47 +0000 (18:09 -0400)]
Add some missing deprecation annotations

These were reported missing in bug
https://bugzilla.gnome.org/show_bug.cgi?id=705672

12 years agoGtkWindow: fix an init/finalize asymmetry
Matthias Clasen [Tue, 13 Aug 2013 21:44:04 +0000 (17:44 -0400)]
GtkWindow: fix an init/finalize asymmetry

Make sure we always deal with the same screen when
connecting / disconnecting the theme-variant changed handler.
Pointed out by Morten Welinder in
https://bugzilla.gnome.org/show_bug.cgi?id=705640

12 years agoAvoid overlong file chooser buttons
Matthias Clasen [Tue, 13 Aug 2013 21:33:55 +0000 (17:33 -0400)]
Avoid overlong file chooser buttons

When bookmarks are long, the file chooser button would
grow too much. This can be avoided by ellipsizing.

Patch by Ritesh Khadgaray,
https://bugzilla.gnome.org/show_bug.cgi?id=672220

12 years agoBug 705181 Annoying beep on arrow keys
Ek Kato [Tue, 13 Aug 2013 18:14:29 +0000 (11:14 -0700)]
Bug 705181 Annoying beep on arrow keys

Original patch was a bit excessive, just needed to not forward the command.

12 years agoicontheme: correctly fallback to symbolic icons
Cosimo Cecchi [Tue, 13 Aug 2013 13:41:08 +0000 (15:41 +0200)]
icontheme: correctly fallback to symbolic icons

When an icon is requested as symbolic, our generic fallback algorithm
uses fullcolor icons when the specified icon name is not found, treating
the "-symbolic" suffix as another component of the icon name.

Change the algorithm to check beforehand if the icon is symbolic, remove
the suffix if so, and re-add it at the end for all the generated icon
names.

https://bugzilla.gnome.org/show_bug.cgi?id=680926

12 years agogtkwindow: Export our custom frame extents
Jasper St. Pierre [Thu, 8 Aug 2013 20:29:02 +0000 (16:29 -0400)]
gtkwindow: Export our custom frame extents

This allows CSD windows to be maximized, tiled, and constrained
properly.

https://bugzilla.gnome.org/show_bug.cgi?id=705765

12 years agox11: Remove dead assignment
Benjamin Otte [Sun, 4 Aug 2013 15:40:34 +0000 (17:40 +0200)]
x11: Remove dead assignment

12 years agoalignment: Remove dead assignment
Benjamin Otte [Sun, 4 Aug 2013 15:38:53 +0000 (17:38 +0200)]
alignment: Remove dead assignment

.. and clean up code

12 years agogtkmenuitem: Remove dead assignment
Benjamin Otte [Sun, 4 Aug 2013 15:30:17 +0000 (17:30 +0200)]
gtkmenuitem: Remove dead assignment

12 years agoDeal with platform-specific im modules
Matthias Clasen [Sun, 11 Aug 2013 19:42:19 +0000 (15:42 -0400)]
Deal with platform-specific im modules

With multiple GDK backends in the process, we run into problems where
we try to use the Wayland im module on X, which crashes. This commit
adds a quick backend filter that removes the wayland, xim and ime
input methods from consideration  unless the corresponding GDK backend
is in use.

12 years agoGtkIMModule: Use default screen when determining context id
Matthias Clasen [Sun, 11 Aug 2013 19:35:07 +0000 (15:35 -0400)]
GtkIMModule: Use default screen when determining context id

This code is called early on, without a window, and then later on
with a window. Currently, it returns different results for these
cases when the setting contains a value. That leads to pointless
construction and destruction of im contexts. Instead, just look
at the settings of the default screen. In practice, there is only
one screen, ever.

12 years agoFix a crash with scaled cursors on Wayland
Matthias Clasen [Sun, 11 Aug 2013 18:53:14 +0000 (14:53 -0400)]
Fix a crash with scaled cursors on Wayland

We need to initialize cursor->surface.scale to 1, since we
are dividing by it in _gdk_wayland_cursor_get_buffer.

12 years agoImplement gdk_display_get_cursor_for_surface in quartz
John Ralls [Sun, 11 Aug 2013 17:43:35 +0000 (10:43 -0700)]
Implement gdk_display_get_cursor_for_surface in quartz

Left out of b2113b7, breaking quartz build

12 years agoBug 701571 NSApp doesn't notice NSWindow destruction
John Ralls [Sat, 10 Aug 2013 21:15:19 +0000 (14:15 -0700)]
Bug 701571 NSApp doesn't notice NSWindow destruction

Part 1 of the fix; part 2 awaits Glib developer approval (see
https://bugzilla.gnome.org/show_bug.cgi?id=704374) and is more
correctly associated with
https://bugzilla.gnome.org/show_bug.cgi?id=674108

12 years agoUpdate Arabic translations
Khaled Hosny [Sun, 11 Aug 2013 11:07:34 +0000 (13:07 +0200)]
Update Arabic translations

12 years agoBuild Wayland backend by default
Matthias Clasen [Sat, 10 Aug 2013 00:55:49 +0000 (20:55 -0400)]
Build Wayland backend by default

Unless an explicit backend is enabled via configure option, build
both the X11 and Wayland backends.

https://bugzilla.gnome.org/show_bug.cgi?id=705498

12 years agoTry Wayland before X11
Matthias Clasen [Sat, 10 Aug 2013 00:50:57 +0000 (20:50 -0400)]
Try Wayland before X11

When both the Wayland and the X11 backends are built, prefer
Wayland over X11 in the absence of other information.

https://bugzilla.gnome.org/show_bug.cgi?id=705498

12 years agoFix up docs for new cursor apis
Matthias Clasen [Fri, 9 Aug 2013 23:48:23 +0000 (19:48 -0400)]
Fix up docs for new cursor apis

The docs for gdk_cursor_new_from_surface were talking about
pixbufs. And the new APIs were not appearing in the docs
at all yet.

12 years agoUpdated Czech translation
Marek Černocký [Thu, 8 Aug 2013 16:45:41 +0000 (18:45 +0200)]
Updated Czech translation

12 years agoReset cursor when mouse leaves a toplevel window.
Daniel Sabo [Thu, 8 Aug 2013 14:36:28 +0000 (09:36 -0500)]
Reset cursor when mouse leaves a toplevel window.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692548

12 years agodnd: Motif DnD is no longer supported, update docs.
Christian Hergert [Thu, 8 Aug 2013 14:06:00 +0000 (16:06 +0200)]
dnd: Motif DnD is no longer supported, update docs.

12 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 8 Aug 2013 12:09:06 +0000 (14:09 +0200)]
Updated Spanish translation